package repository

import (
	"booksmart/book/interactive/repository/cache"
	"booksmart/book/interactive/repository/dao"
	"context"
)

type InteractiveRepository interface {
	BatchIncrReadCnt(ctx context.Context, bizs []string, ids []int64) error
}

type interactiveRepository struct {
	cache cache.InteractiveCache
	dao   dao.InteractiveDAO
}

func NewInteractiveRepository(cache cache.InteractiveCache, dao dao.InteractiveDAO) InteractiveRepository {
	return &interactiveRepository{cache: cache, dao: dao}
}

func (i interactiveRepository) BatchIncrReadCnt(ctx context.Context, bizs []string, ids []int64) error {
	//TODO implement me
	panic("implement me")
}
